<?php
include_once('./inc/config.php');
if(!is_logged_in()) redirect('index.php');	


$mode = $_POST['mode'];
$actions = array();
switch($mode)
{

	case 'check':
		$actions = check_form();
	break;	

	default:
 	break;
	
}

/** 
 * Check Form
 *
 * @descp Validate User in the DB
 * @access public
 * @param  NA	 
 * @return void
 */
function check_form()
{
	global $dbobj, $proj_config;	
	
	$set = array();
	
	$errors = '';
	
	$txt_url 	= $_POST['txt_url'];
	
	if(empty($txt_url) || strlen($txt_url) < 5)
	{
	    $set['errors'] .= '<li>&raquo; Please enter a valid url (ex:www.example.com)</li>';
	}    
	
    if(empty($set['errors']))        
	{
		
	}
	return $set;  
}


/*************************************************************/
//Do not chnage this part
include(BASEPATH . 'views/header.php');//include header file
include(BASEPATH . 'views/seo_form.php');//include body part
include(BASEPATH . 'views/footer.php');//include footer file
/************************************************************/
?>